package cn.tedu.meituanprogram.controller;


import cn.tedu.meituanprogram.mapper.CategoryMapper;
import cn.tedu.meituanprogram.pojo.entity.Category;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/category/")
public class CategoryController {
    @Autowired(required = false)
    CategoryMapper mapper;
    @RequestMapping("select")
    public List<Category> select(){
        return mapper.select();
    }

    @RequestMapping("selectPrice")
    public List<Category> selectPrice(){
        return mapper.selectPrice();
    }




}
